//
//  SDPaientInfoMgr.h
//  TestSL
//
//  Created by pcyang on 16/7/7.
//  Copyright © 2016年 pcyang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SDPaientInfoMgr : NSObject
 + (SDPaientInfoMgr*)shareAGDatabaseManager;

 - (BOOL)creatTable:(Class)cls tableName:(NSString*)tbName keyName:(NSString*)keyName primaryKey:(NSString*) key;
 - (BOOL)insert:(id)model tableName:(NSString*)tbName;
 - (BOOL)update:(id)model tableName:(NSString*)tbName where:(NSString*)str;
 - (BOOL)deleteTableName:(NSString*)tbName where:(NSString*)str;
 - (NSArray*)select:(Class)model tableName:(NSString*)tbName where:(NSString*)str;
 - (NSArray*)selectALL:(Class)model tableName:(NSString*)tbName;
@end
